<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1 {
            padding: 10px;
            border: 3px solid #000;
        }
        
        .div2 {
            float: left;
            padding: 10px;
            border: 3px solid red;
        }
        
        .box {
            background: #d32d2d;
            padding: 10px;
            width: 500px;
            height: 400px;
        }
        
        .rule1 {
            float: left;
            margin: 10px;
            padding: 10px;
            background: #eee;
            width: 100px;
            text-align: center;
        }
    </style>
</head>

<body>
    <div class="div1">
        <img src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AAPOc0f.img?w=300&h=156&q=60&m=6&f=jpg&u=t" alt="">
    </div>
    <div class="box">
        <span class="rule1">首页</span>
        <span class="rule1">发现</span>
        <span class="rule1">动态</span>
        <span class="rule1">我的</span>
    </div>
    <!-- <div class="div2">
        <img src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1a2uVW.img?w=300&h=156&q=60&m=6&f=jpg&u=t" alt="">
    </div> -->
</body>

</html>